﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="Cybozu.SharePoint.AdvancedSearchSB.ListItemButton" Location="CommandUI.Ribbon.ListView" RegistrationType="List" RegistrationId="100">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
          <Button
            Id="Ribbon.ListItem.Actions.SPListAdvancedSearch"
            Command="AdvancedSearch"
            Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
            Image16by16Top="-208"
            Image16by16Left="-128"
            Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
            Image32by32Top="-384"
            Image32by32Left="-224"
            LabelText="Advanced Search"
            Sequence="100"
            TemplateAlias="o1"
            ToolTipTitle="Advanced Search"
            ToolTipDescription="Search items based on specified conditions." />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="AdvancedSearch" CommandAction="{SiteUrl}/Lists/SPAdvancedSearchSBFiles/AdvancedSearch.aspx?List={ListId}" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <CustomAction
    Id="Cybozu.SharePoint.AdvancedSearchSB.RibbonScript"
    Location="ScriptLink"
    ScriptSrc="~Site/Lists/SPAdvancedSearchSBFiles/Ribbon.js"
    Sequence="100" />
</Elements>
